<div class="Pacientes ">
    <fieldset>
        <legend>Pesquisar Solicitações</legend>
        <form accept-charset="utf-8" method="post" id="formulario" action="/siscel/solicitacao" onsubmit="javascript:aguarde();">
            <table width="98%" border="0" cellspacing="0" cellpadding="2">

                <tr>
                    <td colspan="2">
                        <?php echo $this->Form->input('Pesquisar.NM_PAC', array('type' => 'text', 'label' => 'Paciente', 'id' => 'NM_PAC', 'class' => 'campoAlfa', 'size' => "30", 'maxlength' => "120", 'required' => 'false')); ?>
                    </td>
                    <td>
                        <?php echo $this->Form->input('Pesquisar.CO_CNS', array('type' => 'text', 'label' => 'CNS', 'id' => 'CO_CNS', 'class' => 'campoNumerico', 'size' => "20", 'maxlength' => "8", 'required' => 'false')); ?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <?php echo $this->Form->input('Pesquisar.CO_SOLICITACAO', array('type' => 'text', 'label' => 'Cod. Solicitação', 'id' => 'CO_SOLICITACAO', 'class' => 'campoNumerico', 'size' => "30", 'maxlength' => "10")); ?>
                    </td>
                    <td>
                        <?php echo $this->Form->input('Pesquisar.ST_FASE', array('type' => 'text', 'label' => 'Fase da Solicitação', 'id' => 'ST_FASE', 'class' => 'campoAlfa', 'size' => "30", 'maxlength' => "20")); ?>
                    </td>
                    <td>
                        <?php echo $this->Form->input('Pesquisar.DT_SOLICITACAO', array('type' => 'text', 'label' => 'Data', 'id' => 'DT_SOLICITACAO', 'class' => 'campoData', 'size' => "30", 'maxlength' => "120")); ?>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <?php echo $this->Form->input('Pesquisar.ST_EXPIRAR', array('type' => 'checkbox', 'label' => 'A Expirar', 'id' => 'ST_EXPIRAR')); ?>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="text-align: right;">
                        <input id="bntPesquisar" type="submit" value="Pesquisar"/>
                    </td>
                </tr>

            </table>
        </form>
    </fieldset>



    <table cellpadding="0" cellspacing="0">
        <?php #echo '<pre>'; var_dump($Pesquisar); exit; ?>
        <?php if (isset($Pesquisar)) : ?>
            <?php foreach ($Pesquisar as $pesquisa): ?>
                <tr>
                <table >
                    <tr>
                        <td rowspan="4" style="width: 14%;" >
                            <img width="80" height="80" alt="" style="margin: 0px; padding: 0px; border: 1px solid green;" src="/siscel/img/perfil.jpg">
                        </td>
                        <td><b><?php echo ($Paciente['Paciente']['NM_PAC']); ?></b></td>
                        <td><?php echo ($Paciente['Paciente']['NM_MAE']); ?></td>
                        <td><?php echo date('d/m/Y', strtotime($Paciente['Paciente']['DT_NASC'])); ?></td>
                    </tr>
                    <tr>
                        <td><?php echo ($Paciente['Paciente']['SEXO']); ?></td>
                        <td><?php echo ($Paciente['Paciente']['CD_PAIS']); ?></td>
                        <td><?php echo ($Paciente['Paciente']['NUM_CPF_PAC']); ?></td>
                    </tr>
                    <tr>
                        <td><?php echo ($Paciente['Paciente']['RACA']); ?></td>
                        <td><?php echo ($Paciente['Paciente']['EMAIL']); ?></td>
                        <td><?php echo ($Paciente['Paciente']['CO_ETNIA']); ?></td>
                    </tr>

                    <tr>
                        <td style="text-align: right;" colspan="3">
        <!--                        <img alt="" title="Editar" src="/siscel/img/bt_ok.gif" onclick="javascript:window.location='pacientes/cadastrar/<?php echo $Paciente['Paciente']['CD_PAC']; ?>';">            -->
                            <img alt="" title="Editar" src="/siscel/img/bt_lapis.gif" onclick="javascript:window.location='pacientes/cadastrar/<?php echo $Paciente['Paciente']['CD_PAC']; ?>';">            
                            <img alt="" title="Excluir " src="/siscel/img/excluir.gif">            
                            <img alt="" title="visualizar " src="/siscel/img/bt_ok.gif">            
        <!--                        <img alt="" title="visualizar " src="/siscel/img/bt_bloquear.gif">            -->
        <!--                        <img alt="" title="Descredenciar " src="/siscel/img/bt_descredenciar.gif">            -->
                        </td>
              <!--                    <td class="actions" colspan="3">
                        <?php echo $this->Html->link(__('Visualizar'), array('action' => 'visualizar', $Paciente['Paciente']['CD_PAC'])); ?>
                        <?php echo $this->Html->link(__('Editar'), array('action' => 'cadastrar', $Paciente['Paciente']['CD_PAC'])); ?>
                        <?php echo $this->Form->postLink(__('Deletar'), array('action' => 'deletar', $Paciente['Paciente']['CD_PAC']), null, __('Deseja realmente excluir o registro do paciente %s?', $Paciente['Paciente']['NM_PAC'])); ?>
                                  </td>-->
                    </tr>
                </table>
            <?php endforeach; ?>
        <?php else: ?>
            <table>
                <tr>
                    <td colspan="3">Nenhum registro a ser exibido.</td>
                </tr>
            </table>
        <?php endif; ?>
    </table>
    <?php if (isset($Pesquisar)) : ?>
        <div class="paging">
            <?php
            echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
            echo $this->Paginator->numbers(array('separator' => ''));
            echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
            ?>
        </div>
    <?php endif; ?>
</div>